<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <p th:text="${num1}"></p>
    <p th:text="${#numbers.formatDecimal(num1,1,'COMMA',2,'POINT')}"></p>
    <p th:text="${date1}"></p>
    <p th:text="${#dates.format(date1,'yyyy年MM月dd日')}"> </p>
    <p th:text="${#calendars.format(date1,'yyyy-MM-dd hh:mm:ss')}"> </p>
    <p th:text="${date1}"></p>
    <p th:text="${str1}"> </p>
    <p th:text="${#strings.substring(str1,1,4)}"></p>

</body>
</html>